package Others.SimpleCalculator.entity;

import java.util.List;

public class Plus implements CalculateInterface{
    //加
    @Override
    public double calculate(double result,List<Double> a) {
        for (int i = 1; i < a.size(); i++) {
            result = result + a.get(i);
        }
        return result;
    }
}
